<hr/>
<a href="<?php echo site_url('admin/jadwal/tambah/'.$id_tahun.'/'.$id_kelas.'/'.$id_hari) ?>" class="btn btn-info btn-rounded"><i class="iconfa-plus"></i> Tambah Jadwal Pelajaran Tahun <?php echo $tahun_pelajaran.' '.$nama_kelas.' hari '.$nama_hari ?></a>
<br/>
<br/>
<h4 class="widgettitle nomargin shadowed">Data Pelajaran Tahun <?php echo $tahun_pelajaran.' KELAS '.$nama_kelas.' hari '.$nama_hari ?></h4>
<table class="table table-bordered" id="dyntable2">
    <colgroup>
        <col class="con0" />
        <col class="con1" />
        <col class="con0" />
        <col class="con1" />
        <col class="con0" />
    </colgroup>
    <thead>
        <tr>
            <th class="head0">Jam Pelajaran Ke-</th>
            <th class="head0">Waktu Mulai Pelajaran</th>
            <th class="head0">Nama Pelajaran</th>
            <th class="head1">Nama Guru</th>
            <th class="head1">Ruangan</th>
            <th class="head0">Option</th>
        </tr>
    </thead>
    <tbody>
        <?php
		$nomor = 0;
        foreach ($data_jadwal->result() as $value_jadwal)
        {
			$nomor++;
            echo '<tr>';
//            echo '<td>' . $nomor . '</td>';
            echo '<td><center>' . $value_jadwal->jam_pelajaran . '</center></td>';
            echo '<td><center>' . $value_jadwal->waktu_pelajaran . '</center></td>';
			if($value_jadwal->istirahat == 1)
            echo '<td><small>-istirahat-</small></td>';
			else
            echo '<td>' . $value_jadwal->nama_pelajaran . '</td>';
			if($value_jadwal->istirahat == 1)
            echo '<td><small>-istirahat-</small></td>';
			else
            echo '<td>' . $value_jadwal->nama_guru . '</td>';
            echo '<td>' . $value_jadwal->ruangan . '</td>';
			echo '<td><center>';
			// echo '<a href="'.base_url('admin/jadwal/edit/'.$value_jadwal->id_jadwal).'"  title="ubah"><i class="iconsweets-create"></i></a> | ';
			echo '<a href="'.base_url('admin/jadwal/hapus/'.$value_jadwal->id_jadwal).'"  title="hapus"><i class="iconsweets-trashcan"></i></a>';
			echo '</center></td>';
            echo '</tr>';
        }
        ?>
    </tbody>
</table>
<script type="text/javascript">
    jQuery.noConflict();

    jQuery(document).ready(function() {
jQuery('#dyntable2').dataTable({
            "sPaginationType": "full_numbers",
            "aaSortingFixed": [[0, 'asc']],
            "fnDrawCallback": function(oSettings) {
//                jQuery.uniform.update();
            }
        });
		
});
</script>